import java.util.Arrays;
import java.util.Scanner;

public class Lianxi7 {
    public static void main(String[] args) {
        int[] nn=new int[]{99,85,82,63,60,0};
        Scanner input =new Scanner(System.in);
        System.out.println("请输入一个数字");
        int scorse=input.nextInt();
        int index=0;
        while (true){
            if (index==nn.length-1){
                break;
            }
            if (nn[index]<scorse){
                break;
            }
            index++;
        }
        if (index<nn.length-1){
            for (int i=nn.length-1;i>index;i--){
                nn[i]=nn[i-1];
            }
        }
        nn[index]=scorse;
        System.out.println(Arrays.toString(nn));
    }
}
